#ifndef POWERUP_H
#define POWERUP_H
#include "ship.h"
#include "blackhole.h"
#include "global.h"

class powerup{

    private:
        int x, y;
        int type;
        float xtheta, ytheta;
        float distance;
        float speed;
        bool exists;
    public:
        void set_exists (bool e) {exists = e;}
        void set_x(int sx) {x = sx;}
        void set_y(int sy) {y = sy;}
        void set_type(int tt) {type = tt;}
        void set_xtheta (float xt) {xtheta = xt;}
        void set_ytheta (float yt) {ytheta = yt;}
        void set_distance (float d) {distance = d;}
        void set_speed(float s) {speed = s;}
        int get_x() { return x; }
        int get_y() { return y; }
        int get_type() { return type; }
        float get_xtheta() {return xtheta;}
        float get_ytheta() {return ytheta;}
        float get_distance() {return distance;}
        float get_speed() {return speed;}
        bool get_exists() {return exists;}
        void move(ship*, blackhole*);
        void refresh();
        void draw();
};
#endif
